package com.xzs.kit.base.jwt;

import java.util.Date;

/**
 * @description : JWT主要信息,claims
 * @author: Victor.Xiao
 * @create: 2018-08-09 08:49
 */
public class JWTInfo {
    /**
     * 昵称
     */
    private String userName;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 代表这个JWT的过期时间
     */
    private Date expiration;
    /**
     * 代表这个JWT的签发时间
     */
    private Date issuedAt;
    /**
     * 代表这个JWT的主体，即它的所有者
     */
    private String subject;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getExpiration() {
        return expiration;
    }

    public void setExpiration(Date expiration) {
        this.expiration = expiration;
    }

    public Date getIssuedAt() {
        return issuedAt;
    }

    public void setIssuedAt(Date issuedAt) {
        this.issuedAt = issuedAt;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }
}
